﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Schedule
{
    class Deadline
    {
        public static int DDLNum = 0;//用于生成ddlID
        public int DDLID;
        public long CourseID;
        public string Task;
        public DateTime DeadlineDate;

        public static List<Deadline> deadlines = new List<Deadline>();
        public Deadline(int id,long courseID,string task,DateTime dateTime)
        {
            DDLID = id;
            CourseID = courseID;
            Task = task;
            DeadlineDate = dateTime;
        }

        public Deadline(long courseID, string task, DateTime dateTime)
        {
            DDLID = DDLNum;
            DDLNum++;
            CourseID = courseID;
            Task = task;
            DeadlineDate = dateTime;
        }

    }
}
